package org.fast.develop.logicflow.ws.message;

import lombok.Data;
import lombok.experimental.Accessors;
import org.fast.develop.logicflow.runtime.enums.ExecuteDebugEnum;

import java.util.List;

/**
 * @author czh
 * @version V1.0
 * @data Created on 2023-01-11 09:41
 */
@Data
@Accessors(chain = true)
public class RunTimeMessage extends Message{

    private List<String> debugResourceIds;

    private Boolean isOpen;

    private Boolean stepOverFlag;

    private Boolean isDebugStart;

    public static RunTimeMessage OfNull(){
        return new RunTimeMessage()
                .setIsOpen(false)
                .setStepOverFlag(false)
                .setIsDebugStart(false);

    }

    public static RunTimeMessage OfDebug(){
        return new RunTimeMessage()
                .setIsOpen(true)
                .setStepOverFlag(false)
                .setIsDebugStart(true);

    }
}
